using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DM_DVT: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DM_DVTFields
		{
			ID,
			Ma,
			Ten,
			Ghichu
		}
		#endregion

		#region Data Members

			long _iD;
			int _ma;
			string _ten;
			string _ghichu;

		#endregion

		#region Properties

		public long  ID
		{
			 get { return _iD; }
			 set
			 {
				 if (_iD != value)
				 {
					_iD = value;
				 }
			 }
		}

		public int  Ma
		{
			 get { return _ma; }
			 set
			 {
				 if (_ma != value)
				 {
					_ma = value;
				 }
			 }
		}

		public string  Ten
		{
			 get { return _ten; }
			 set
			 {
				 if (_ten != value)
				 {
					_ten = value;
				 }
			 }
		}

		public string  Ghichu
		{
			 get { return _ghichu; }
			 set
			 {
				 if (_ghichu != value)
				 {
					_ghichu = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("ID", "ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Ma", "Ma"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Ten", "Ten",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Ghichu", "Ghichu",50));
		}

		#endregion

	}
}
